home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / programr / segheap.zip / segheap.doc < prev    next >
Text File  |  1992-02-16  |  2KB  |  51 lines

  1. DOCUMENTATION ON THE SEGHEAP LIBRARY
  2. ====================================
  3.  
  4. by Stephen Chung (stephenc@cunixf.cc.columbia.edu)
  5.  
  6.  
  7. Introduction
  8. ------------
  9.  
  10. These routines are to be used with Microsoft Windows 3.0.  The library
  11. implements a segmented heap in global memory space, allocating and freeing
  12. memory blocks of different sizes at the user's request.  It solves the
  13. typical Windows problem of not being able to efficiently handle a large
  14. number of small memory blocks allocated globally.
  15.  
  16.  
  17. Caution
  18. -------
  19.  
  20. These routines lock a memory handle immediately after allocation.  As
  21. a result, they work with PROTECTED MODE ONLY.
  22.  
  23. I think these routines are OK, but let me know if you find a bug.
  24.  
  25.  
  26. How to use
  27. ----------
  28.  
  29. The routines SegHeapAlloc, SegHeapFree and SegHeapRealloc basically
  30. parallel the malloc, free and realloc functions found in standard C
  31. libraries.  FreeAllMemory is designed to be used by the end of a program,
  32. when all dynamic memory can be released.  MemoryStatistics will
  33. calculate some memory usage statistics.
  34.  
  35.  
  36. Afterwords
  37. ----------
  38.  
  39. Theoretically, you are required to obtain special approval from me (because
  40. I copyrighted these routines) if you want to use them in your programs.
  41. However, I usually don't really care if you are not using these routines in
  42. a commercial, shareware etc. product.
  43.  
  44. Any questions and/or bug fixes, please send email to:
  45.  
  46.         Stephen Chung           stephenc@cunixf.cc.columbia.edu
  47.  
  48. If it bounces, then try schung@cogsci.Berkeley.EDU
  49.  
  50. Have fun!
  51.